﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using AutoCorrelatorGUI.Model;
using AutoCorrelatorGUI.ViewModel;

namespace AutoCorrelatorGUI.Utility
{
   public class RowContentConverter : IValueConverter
   {
      public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
      {
         WellVM well = value as WellVM;
         if (well != null) //combine
         {
            return "ID: " + well.Title;
         }
         else
         {
            return "";
         }
      }

      public object ConvertBack(object value, Type targetType,
          object parameter, CultureInfo culture)
      {
         return new NotImplementedException();
      }
   }
}
